From 8d67071a10f5f3d143587253dab87dd460b2d04a Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Sat, 17 Jan 2009 13:47:52 +0000 Subject: [PATCH] Don't have BABL_ALPHA_THRESHOLD public yet. * babl/babl.h: Don't have BABL_ALPHA_THRESHOLD public yet. * babl/base/util.h: Put it here for now instead. svn path=/trunk/; revision=371 --- ChangeLog | 6 ++++++ babl/babl.h | 7 ------- babl/base/util.h | 7 +++++++ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 13d44a6..b6d7470 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-01-17 Martin Nordholts + + * babl/babl.h: Don't have BABL_ALPHA_THRESHOLD public yet. + + * babl/base/util.h: Put it here for now instead. + 2009-01-17 Martin Nordholts Instead of having BABL_CLASS() plus variants and making the macros diff --git a/babl/babl.h b/babl/babl.h index 8283db3..a62ad79 100644 --- a/babl/babl.h +++ b/babl/babl.h @@ -39,13 +39,6 @@ */ #define BABL_MAGIC 0xbab100 -/* Alpha threshold used in the reference implementation for - * un-pre-multiplication of color data: - * - * 0.01 / (2^16 - 1) - */ -#define BABL_ALPHA_THRESHOLD 0.000000152590219 - enum { BABL_INSTANCE = BABL_MAGIC, BABL_TYPE, diff --git a/babl/base/util.h b/babl/base/util.h index fa2280c..7ccaf8f 100644 --- a/babl/base/util.h +++ b/babl/base/util.h @@ -22,6 +22,13 @@ #include #include +/* Alpha threshold used in the reference implementation for + * un-pre-multiplication of color data: + * + * 0.01 / (2^16 - 1) + */ +#define BABL_ALPHA_THRESHOLD 0.000000152590219 + #define BABL_PLANAR_SANITY \ { \ assert(src_bands>0); \ -- 2.30.2